/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B9B;
    --secondary: #6BCBFF;
    --accent: #FFD66B;
    --purple: #A78BFA;
    --green: #6BFFB8;
    --light: #FFF5F7;
    --gray: #6B7280;
    --dark: #1F2937;
}

body {
    font-family: '"Comic Sans MS"', '"Bubblegum Sans"', cursive;
    background-color: #f9fafb;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文本样式 */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.text-purple {
    color: var(--purple);
}

.text-green {
    color: var(--green);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-shadow-lg {
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 背景样式 */
.bg-gradient-pink {
    background: linear-gradient(135deg, #FFF5F7 0%, #FEE2E2 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #FAF5FF 0%, #EDE9FE 100%);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #FF87B0);
    color: white;
}

.btn-secondary {
    background: linear-gradient(90deg, var(--secondary), #8CD4FF);
    color: white;
}

.btn-accent {
    background: linear-gradient(90deg, var(--accent), #FFE08C);
    color: var(--dark);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

/* 导航样式 */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    margin-bottom: 30px;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: rgba(255, 107, 155, 0.1);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

/* 动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-link {
        font-size: 16px;
        padding: 6px 12px;
    }
}

/* 装饰元素 */
.decor {
    position: fixed;
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

/* 音频控制 */
.audio-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
}

/* 页面过渡 */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}
